home *** CD-ROM | disk | FTP | other *** search
/ Power Bytes: Money & Finance / PowerBytes Money and Finance CD-ROM 01 / PowerBytes Money and Finance CD-ROM 01.iso / New Files / Info Stacksƒ / Home Inventory / background_2932.txt < prev    next >
Encoding:
Text File  |  1988-07-26  |  3.1 KB  |  149 lines

  1. -- background: 2932 from stack: in
  2. -- bmap block id: 4978
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: 
  6. ----- HyperTalk script -----
  7. -- These background scripts handle check-boxes on a background by
  8. -- storing the settings of the check-boxes in a hidden field called
  9. -- "checks" and setting and resetting them on open and close card.
  10. --
  11. on newCard
  12.   repeat with i=1 to the number of background buttons
  13.     put "true" & return after field "checks"
  14.   end repeat
  15. end newCard
  16.  
  17. on openCard
  18.   set cursor to 4 -- wristwatch
  19.   repeat with i=1 to the number of background buttons
  20.     set the hilite of background button i to (line i of field "checks" is true)
  21.   end repeat
  22.   set cursor to 1 -- browse tool
  23. end openCard
  24.  
  25. on closeCard
  26.   set cursor to 4 -- wristwatch
  27.   repeat with i=1 to the number of background buttons
  28.     get hilite of background button i
  29.     put it into line i of field "checks"
  30.   end repeat
  31.   set cursor to 1 -- browse tool
  32. end closeCard
  33.  
  34. on newStack
  35.   newCard
  36. end newStack
  37.  
  38. on openBackground
  39.   push recent card
  40. end openBackground
  41.  
  42.  
  43. -- part 70 (field)
  44. -- low flags: 80
  45. -- high flags: 0000
  46. -- rect: left=17 top=38 right=328 bottom=43
  47. -- title width / last selected line: 0
  48. -- icon id / first selected line: 0 / 0
  49. -- text alignment: 0
  50. -- font id: 3
  51. -- text size: 9
  52. -- style flags: 0
  53. -- line height: 12
  54. -- part name: Checks
  55.  
  56.  
  57. -- part 71 (button)
  58. -- low flags: 00
  59. -- high flags: 0000
  60. -- rect: left=18 top=39 right=76 bottom=56
  61. -- title width / last selected line: 0
  62. -- icon id / first selected line: 21700 / 21700
  63. -- text alignment: 1
  64. -- font id: 0
  65. -- text size: 12
  66. -- style flags: 0
  67. -- line height: 16
  68. -- part name: Home
  69. ----- HyperTalk script -----
  70. on mouseUp
  71.   visual effect iris close
  72.   go to card id 5341 of stack "Home"
  73. end mouseUp
  74.  
  75.  
  76.  
  77.  
  78. -- part 72 (button)
  79. -- low flags: 00
  80. -- high flags: 0000
  81. -- rect: left=395 top=39 right=78 bottom=443
  82. -- title width / last selected line: 0
  83. -- icon id / first selected line: 19381 / 19381
  84. -- text alignment: 1
  85. -- font id: 0
  86. -- text size: 12
  87. -- style flags: 0
  88. -- line height: 16
  89. -- part name: 
  90. ----- HyperTalk script -----
  91. on mouseUp
  92.   go to previous card
  93. end mouseUp
  94.  
  95.  
  96.  
  97. -- part 74 (button)
  98. -- low flags: 00
  99. -- high flags: 8003
  100. -- rect: left=336 top=51 right=70 bottom=391
  101. -- title width / last selected line: 0
  102. -- icon id / first selected line: 0 / 0
  103. -- text alignment: 1
  104. -- font id: 0
  105. -- text size: 12
  106. -- style flags: 0
  107. -- line height: 16
  108. -- part name: Index
  109. ----- HyperTalk script -----
  110. on mouseUp
  111.   visual effect iris close
  112.   go to card id 6590
  113. end mouseUp
  114.  
  115.  
  116.  
  117.  
  118. -- part 75 (button)
  119. -- low flags: 00
  120. -- high flags: 0000
  121. -- rect: left=445 top=39 right=78 bottom=493
  122. -- title width / last selected line: 0
  123. -- icon id / first selected line: 22308 / 22308
  124. -- text alignment: 1
  125. -- font id: 0
  126. -- text size: 12
  127. -- style flags: 0
  128. -- line height: 16
  129. -- part name: 
  130. ----- HyperTalk script -----
  131. on mouseUp
  132.   go to next card
  133. end mouseUp
  134.  
  135.  
  136.  
  137. -- part 76 (field)
  138. -- low flags: 00
  139. -- high flags: 0000
  140. -- rect: left=18 top=98 right=329 bottom=493
  141. -- title width / last selected line: 0
  142. -- icon id / first selected line: 0 / 0
  143. -- text alignment: 0
  144. -- font id: 3
  145. -- text size: 12
  146. -- style flags: 0
  147. -- line height: 16
  148. -- part name: 
  149.